export default class UIUtil {
    public static move(this:UIUtil ,node:cc.Node,targerParent:cc.Node,cleanup:boolean = false) {
        let wp = node.convertToWorldSpaceAR(cc.v3(0, 0, 0)) 
        let pp = targerParent.convertToNodeSpaceAR(wp)
        node.removeFromParent(cleanup)
        node.position = pp
        targerParent.addChild(node)
        return this
    }
}